package cn.constant;

/**
 * @author m on 2023/1/27
 * Description:
 */
public final class ApiConstant {
    private ApiConstant(){}

    //指定type
    public static final String API_PRODUCES = "application/json";

    //路由
    public static final String ROUTE_AUTH_ROOT="api";
    public static final String ROUTE_AUTH_LOGIN="/login";
    public static final String ROUTE_AUTH_LOGOUT="/logout";
    public static final String ROUTE_AUTH_REGISTER="/register";
    public static final String ROUTE_AUTH_EXISITS="/exists";

    public static final String ROUTE_USER_ROOT="/user";
    public static final String ROUTE_USER_ALL="/";
    public static final String ROUTE_USER_PAGE="/page";
    public static final String ROUTE_USER_SEARCH="/search/{kw}";
    public static final String ROUTE_USER_APPLY="/apply";
    public static final String ROUTE_USER_AUDITOR="/auditor";
    public static final String ROUTE_USER_APPROVE="/approve";
    public static final String ROUTE_USER_DECLINED="/declined";
    public static final String ROUTE_USER_PROHIBIT="/prohibit";



    public static final String ROUTE_ARTICLE_ROOT="/article";
    public static final String ROUTE_ARTICLE_PAGE="/page";
    public static final String ROUTE_ARTICLE_CREATE="/create";
    public static final String ROUTE_ARTICLE_UPDATE="/update/{id}";
    public static final String ROUTE_ARTICLE_DELETE="/delete";
    public static final String ROUTE_ARTICLE_GET_ARTICLE="/{id}";

    public static final String ROUTE_COMMENT_ROOT = "/comment";
    public static final String ROUTE_COMMENT_CREATE = "/create";
    public static final String ROUTE_COMMENT_DELETE = "/delete";




    //key
    public static final String KEY_TOKEN = "token";
    public static final String KEY_UUID = "id";

    public static final String KEY_LOGIN_USER_NAME = "username";
    public static final String KEY_LOGIN_PASSWORD = "password";

    public static final String KEY_REGISTER_NICK_NAME = "nick_name";
    public static final String KEY_REGISTER_USER_NAME = "user_name";
    public static final String KEY_REGISTER_PASSWORD = "password";
    public static final String KEY_REGISTER_AVATAR = "avatar";
    public static final String KEY_REGISTER_EMAIL = "email";
    public static final String KEY_REGISTER_PHONE = "phone";
    public static final String KEY_REGISTER_APPLY = "is_apply";

    public static final String KEY_REAL_NAME = "real_name";
    public static final String KEY_REAL_SEX = "sex";
    public static final String KEY_REAL_NATION = "nation";
    public static final String KEY_REAL_DATE = "date";
    public static final String KEY_REAL_ADDRESS = "address";
    public static final String KEY_REAL_NUMBER = "number";
    public static final String KEY_REAL_USER_ID = "user_id";

    public static final String KEY_ARTICLE_TITLE = "title";
    public static final String KEY_REAL_CONTENT = "content";
    public static final String KEY_REAL_COMMENT_SIZE = "comment_size";

    public static final String KEY_COMMENT_PID="pid";
    public static final String KEY_COMMENT_CONTENT="content";
    public static final String KEY_COMMENT_REPLY_COMMENT_ID="reply_comment_id";
    public static final String KEY_COMMENT_ARTICLE_ID="article_id";


}
